<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查询列表</title>
</head>
<body> 
<form id="form">
    <table class="table" align="center">
        <tr class="info">
            <td colspan="3">列表</td>
        </tr>
        <tr>
            <td>名称</td>
            <td>图片</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${imageList }" var="image">
        <tr class="success">
            <td>${image.username }</td>
            <td><img src="${image.pictureFile }" width="100px" height="100px" /></td>
            <td><a href="${pageContext.request.contextPath}/download?username=${image.username}" class="btn btn-warning">下载</a></td>
            <%-- ?username=${image.username} --%>
        </tr>
        </c:forEach>
    </table>
    <span style="color:red">${saveInfo }</span>
</form>

</body>

</html>